package com.lovesher.payment.common.enums;

/**
 * 支付类型枚举
 * 
 * @author
 * 
 */
public enum PayType {
	RECHARGE(0, "充值"),
	TRANSFER(1, "转账"),
	REFUND(2,"退款")
	;

	private int status;
	private String name;

	private PayType(int status, String name) {
		this.status = status;
		this.name = name;
	}

	public int getValue() {
		return this.status;
	}

	public String getName() {
		return this.name;
	}

	public static PayType valueOf(int status) {
		PayType ret = null;
		for (PayType stt : PayType.values()) {
			if (stt.getValue() == status) {
				ret = stt;
				break;
			}
		}

		return ret;
	}
}
